x86: prevent access to HPET from Dom0
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 23 Jan 2015 14:16:18 +0000 (15:16 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Jan 2015 14:16:18 +0000 (15:16 +0100)
commite50fd2b3c8d8b811ea386cb95a906e631ba37f6c
treecea552a9813724a4a8802742bb539254aa71d116
parent631136c7db91b18a125549b52585fc8e133a6711
x86: prevent access to HPET from Dom0

Prevent Dom0 from accessing HPET MMIO region by adding the HPET mfn to the
list of forbiden memory regions (if ACPI_HPET_PAGE_PROTECT4 or
ACPI_HPET_PAGE_PROTECT64 flag is set) or to the list of read-only regions.

Also provide an option that prevents adding the HPET to the read-only memory
regions called ro-hpet, in case there are systems that put other stuff in
the HPET page.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Don't loop over iomem_deny_access() for consecutive MFNs.

Put new command line option's doc entry in right spot.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
docs/misc/xen-command-line.markdown
xen/arch/x86/acpi/boot.c
xen/arch/x86/domain_build.c
xen/arch/x86/hpet.c
xen/include/asm-x86/hpet.h